<template>
  <div>
    <CategorySelector :disabled="!isShowAttrList" />
    <AttrList v-if="isShowAttrList" @setIsShowAttr="isShowAttrList = $event" />
    <AddOrUpdateAttr v-else @setIsShowAttr="isShowAttrList = $event" />
  </div>
</template>

<script lang="ts">
export default {
  name: "JAttr",
};
</script>

<script lang="ts" setup>
import { ref } from "vue";
import CategorySelector from "@/components/CategorySelector/index.vue";
import AttrList from "./components/AttrList.vue";
import AddOrUpdateAttr from "./components/AddOrUpdateAttr.vue";

// 显示展示属性组件 & 添加属性组件
const isShowAttrList = ref(true);
</script>

<style scoped></style>
